package com.pgybook.db.entity.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class PurchaseBookListEx {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PurchaseBookListEx() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPurchasebookidIsNull() {
            addCriterion("PURCHASEBOOKID is null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIsNotNull() {
            addCriterion("PURCHASEBOOKID is not null");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID =", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <>", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThan(Long value) {
            addCriterion("PURCHASEBOOKID >", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidGreaterThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID >=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThan(Long value) {
            addCriterion("PURCHASEBOOKID <", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidLessThanOrEqualTo(Long value) {
            addCriterion("PURCHASEBOOKID <=", value, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotIn(List<Long> values) {
            addCriterion("PURCHASEBOOKID not in", values, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andPurchasebookidNotBetween(Long value1, Long value2) {
            addCriterion("PURCHASEBOOKID not between", value1, value2, "purchasebookid");
            return (Criteria) this;
        }

        public Criteria andIsbnIsNull() {
            addCriterion("ISBN is null");
            return (Criteria) this;
        }

        public Criteria andIsbnIsNotNull() {
            addCriterion("ISBN is not null");
            return (Criteria) this;
        }

        public Criteria andIsbnEqualTo(String value) {
            addCriterion("ISBN =", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotEqualTo(String value) {
            addCriterion("ISBN <>", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnGreaterThan(String value) {
            addCriterion("ISBN >", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnGreaterThanOrEqualTo(String value) {
            addCriterion("ISBN >=", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLessThan(String value) {
            addCriterion("ISBN <", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLessThanOrEqualTo(String value) {
            addCriterion("ISBN <=", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnLike(String value) {
            addCriterion("ISBN like", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotLike(String value) {
            addCriterion("ISBN not like", value, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnIn(List<String> values) {
            addCriterion("ISBN in", values, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotIn(List<String> values) {
            addCriterion("ISBN not in", values, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnBetween(String value1, String value2) {
            addCriterion("ISBN between", value1, value2, "isbn");
            return (Criteria) this;
        }

        public Criteria andIsbnNotBetween(String value1, String value2) {
            addCriterion("ISBN not between", value1, value2, "isbn");
            return (Criteria) this;
        }

        public Criteria andAuthor1IsNull() {
            addCriterion("AUTHOR1 is null");
            return (Criteria) this;
        }

        public Criteria andAuthor1IsNotNull() {
            addCriterion("AUTHOR1 is not null");
            return (Criteria) this;
        }

        public Criteria andAuthor1EqualTo(Integer value) {
            addCriterion("AUTHOR1 =", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1NotEqualTo(Integer value) {
            addCriterion("AUTHOR1 <>", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1GreaterThan(Integer value) {
            addCriterion("AUTHOR1 >", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1GreaterThanOrEqualTo(Integer value) {
            addCriterion("AUTHOR1 >=", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1LessThan(Integer value) {
            addCriterion("AUTHOR1 <", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1LessThanOrEqualTo(Integer value) {
            addCriterion("AUTHOR1 <=", value, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1In(List<Integer> values) {
            addCriterion("AUTHOR1 in", values, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1NotIn(List<Integer> values) {
            addCriterion("AUTHOR1 not in", values, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1Between(Integer value1, Integer value2) {
            addCriterion("AUTHOR1 between", value1, value2, "author1");
            return (Criteria) this;
        }

        public Criteria andAuthor1NotBetween(Integer value1, Integer value2) {
            addCriterion("AUTHOR1 not between", value1, value2, "author1");
            return (Criteria) this;
        }

        public Criteria andPubtimeIsNull() {
            addCriterion("PUBTIME is null");
            return (Criteria) this;
        }

        public Criteria andPubtimeIsNotNull() {
            addCriterion("PUBTIME is not null");
            return (Criteria) this;
        }

        public Criteria andPubtimeEqualTo(Date value) {
            addCriterionForJDBCDate("PUBTIME =", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("PUBTIME <>", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeGreaterThan(Date value) {
            addCriterionForJDBCDate("PUBTIME >", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("PUBTIME >=", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeLessThan(Date value) {
            addCriterionForJDBCDate("PUBTIME <", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("PUBTIME <=", value, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeIn(List<Date> values) {
            addCriterionForJDBCDate("PUBTIME in", values, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("PUBTIME not in", values, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("PUBTIME between", value1, value2, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPubtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("PUBTIME not between", value1, value2, "pubtime");
            return (Criteria) this;
        }

        public Criteria andPagecntIsNull() {
            addCriterion("PAGECNT is null");
            return (Criteria) this;
        }

        public Criteria andPagecntIsNotNull() {
            addCriterion("PAGECNT is not null");
            return (Criteria) this;
        }

        public Criteria andPagecntEqualTo(Integer value) {
            addCriterion("PAGECNT =", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntNotEqualTo(Integer value) {
            addCriterion("PAGECNT <>", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntGreaterThan(Integer value) {
            addCriterion("PAGECNT >", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntGreaterThanOrEqualTo(Integer value) {
            addCriterion("PAGECNT >=", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntLessThan(Integer value) {
            addCriterion("PAGECNT <", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntLessThanOrEqualTo(Integer value) {
            addCriterion("PAGECNT <=", value, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntIn(List<Integer> values) {
            addCriterion("PAGECNT in", values, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntNotIn(List<Integer> values) {
            addCriterion("PAGECNT not in", values, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntBetween(Integer value1, Integer value2) {
            addCriterion("PAGECNT between", value1, value2, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPagecntNotBetween(Integer value1, Integer value2) {
            addCriterion("PAGECNT not between", value1, value2, "pagecnt");
            return (Criteria) this;
        }

        public Criteria andPapersizeIsNull() {
            addCriterion("PAPERSIZE is null");
            return (Criteria) this;
        }

        public Criteria andPapersizeIsNotNull() {
            addCriterion("PAPERSIZE is not null");
            return (Criteria) this;
        }

        public Criteria andPapersizeEqualTo(String value) {
            addCriterion("PAPERSIZE =", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeNotEqualTo(String value) {
            addCriterion("PAPERSIZE <>", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeGreaterThan(String value) {
            addCriterion("PAPERSIZE >", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeGreaterThanOrEqualTo(String value) {
            addCriterion("PAPERSIZE >=", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeLessThan(String value) {
            addCriterion("PAPERSIZE <", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeLessThanOrEqualTo(String value) {
            addCriterion("PAPERSIZE <=", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeLike(String value) {
            addCriterion("PAPERSIZE like", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeNotLike(String value) {
            addCriterion("PAPERSIZE not like", value, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeIn(List<String> values) {
            addCriterion("PAPERSIZE in", values, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeNotIn(List<String> values) {
            addCriterion("PAPERSIZE not in", values, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeBetween(String value1, String value2) {
            addCriterion("PAPERSIZE between", value1, value2, "papersize");
            return (Criteria) this;
        }

        public Criteria andPapersizeNotBetween(String value1, String value2) {
            addCriterion("PAPERSIZE not between", value1, value2, "papersize");
            return (Criteria) this;
        }

        public Criteria andPackingIsNull() {
            addCriterion("PACKING is null");
            return (Criteria) this;
        }

        public Criteria andPackingIsNotNull() {
            addCriterion("PACKING is not null");
            return (Criteria) this;
        }

        public Criteria andPackingEqualTo(String value) {
            addCriterion("PACKING =", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingNotEqualTo(String value) {
            addCriterion("PACKING <>", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingGreaterThan(String value) {
            addCriterion("PACKING >", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingGreaterThanOrEqualTo(String value) {
            addCriterion("PACKING >=", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingLessThan(String value) {
            addCriterion("PACKING <", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingLessThanOrEqualTo(String value) {
            addCriterion("PACKING <=", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingLike(String value) {
            addCriterion("PACKING like", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingNotLike(String value) {
            addCriterion("PACKING not like", value, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingIn(List<String> values) {
            addCriterion("PACKING in", values, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingNotIn(List<String> values) {
            addCriterion("PACKING not in", values, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingBetween(String value1, String value2) {
            addCriterion("PACKING between", value1, value2, "packing");
            return (Criteria) this;
        }

        public Criteria andPackingNotBetween(String value1, String value2) {
            addCriterion("PACKING not between", value1, value2, "packing");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("PRICE is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("PRICE is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("PRICE =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("PRICE <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("PRICE >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("PRICE <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("PRICE <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("PRICE in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("PRICE not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PRICE not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("WEIGHT is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("WEIGHT is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Integer value) {
            addCriterion("WEIGHT =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Integer value) {
            addCriterion("WEIGHT <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Integer value) {
            addCriterion("WEIGHT >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("WEIGHT >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Integer value) {
            addCriterion("WEIGHT <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Integer value) {
            addCriterion("WEIGHT <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Integer> values) {
            addCriterion("WEIGHT in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Integer> values) {
            addCriterion("WEIGHT not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Integer value1, Integer value2) {
            addCriterion("WEIGHT between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Integer value1, Integer value2) {
            addCriterion("WEIGHT not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andLanguageIsNull() {
            addCriterion("LANGUAGE is null");
            return (Criteria) this;
        }

        public Criteria andLanguageIsNotNull() {
            addCriterion("LANGUAGE is not null");
            return (Criteria) this;
        }

        public Criteria andLanguageEqualTo(Integer value) {
            addCriterion("LANGUAGE =", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageNotEqualTo(Integer value) {
            addCriterion("LANGUAGE <>", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageGreaterThan(Integer value) {
            addCriterion("LANGUAGE >", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageGreaterThanOrEqualTo(Integer value) {
            addCriterion("LANGUAGE >=", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageLessThan(Integer value) {
            addCriterion("LANGUAGE <", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageLessThanOrEqualTo(Integer value) {
            addCriterion("LANGUAGE <=", value, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageIn(List<Integer> values) {
            addCriterion("LANGUAGE in", values, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageNotIn(List<Integer> values) {
            addCriterion("LANGUAGE not in", values, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageBetween(Integer value1, Integer value2) {
            addCriterion("LANGUAGE between", value1, value2, "language");
            return (Criteria) this;
        }

        public Criteria andLanguageNotBetween(Integer value1, Integer value2) {
            addCriterion("LANGUAGE not between", value1, value2, "language");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andBuynewbookIsNull() {
            addCriterion("BUYNEWBOOK is null");
            return (Criteria) this;
        }

        public Criteria andBuynewbookIsNotNull() {
            addCriterion("BUYNEWBOOK is not null");
            return (Criteria) this;
        }

        public Criteria andBuynewbookEqualTo(Integer value) {
            addCriterion("BUYNEWBOOK =", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookNotEqualTo(Integer value) {
            addCriterion("BUYNEWBOOK <>", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookGreaterThan(Integer value) {
            addCriterion("BUYNEWBOOK >", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookGreaterThanOrEqualTo(Integer value) {
            addCriterion("BUYNEWBOOK >=", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookLessThan(Integer value) {
            addCriterion("BUYNEWBOOK <", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookLessThanOrEqualTo(Integer value) {
            addCriterion("BUYNEWBOOK <=", value, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookIn(List<Integer> values) {
            addCriterion("BUYNEWBOOK in", values, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookNotIn(List<Integer> values) {
            addCriterion("BUYNEWBOOK not in", values, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookBetween(Integer value1, Integer value2) {
            addCriterion("BUYNEWBOOK between", value1, value2, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andBuynewbookNotBetween(Integer value1, Integer value2) {
            addCriterion("BUYNEWBOOK not between", value1, value2, "buynewbook");
            return (Criteria) this;
        }

        public Criteria andRewardcoinIsNull() {
            addCriterion("REWARDCOIN is null");
            return (Criteria) this;
        }

        public Criteria andRewardcoinIsNotNull() {
            addCriterion("REWARDCOIN is not null");
            return (Criteria) this;
        }

        public Criteria andRewardcoinEqualTo(Integer value) {
            addCriterion("REWARDCOIN =", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinNotEqualTo(Integer value) {
            addCriterion("REWARDCOIN <>", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinGreaterThan(Integer value) {
            addCriterion("REWARDCOIN >", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinGreaterThanOrEqualTo(Integer value) {
            addCriterion("REWARDCOIN >=", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinLessThan(Integer value) {
            addCriterion("REWARDCOIN <", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinLessThanOrEqualTo(Integer value) {
            addCriterion("REWARDCOIN <=", value, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinIn(List<Integer> values) {
            addCriterion("REWARDCOIN in", values, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinNotIn(List<Integer> values) {
            addCriterion("REWARDCOIN not in", values, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinBetween(Integer value1, Integer value2) {
            addCriterion("REWARDCOIN between", value1, value2, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andRewardcoinNotBetween(Integer value1, Integer value2) {
            addCriterion("REWARDCOIN not between", value1, value2, "rewardcoin");
            return (Criteria) this;
        }

        public Criteria andBooknumIsNull() {
            addCriterion("BOOKNUM is null");
            return (Criteria) this;
        }

        public Criteria andBooknumIsNotNull() {
            addCriterion("BOOKNUM is not null");
            return (Criteria) this;
        }

        public Criteria andBooknumEqualTo(Integer value) {
            addCriterion("BOOKNUM =", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumNotEqualTo(Integer value) {
            addCriterion("BOOKNUM <>", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumGreaterThan(Integer value) {
            addCriterion("BOOKNUM >", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumGreaterThanOrEqualTo(Integer value) {
            addCriterion("BOOKNUM >=", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumLessThan(Integer value) {
            addCriterion("BOOKNUM <", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumLessThanOrEqualTo(Integer value) {
            addCriterion("BOOKNUM <=", value, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumIn(List<Integer> values) {
            addCriterion("BOOKNUM in", values, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumNotIn(List<Integer> values) {
            addCriterion("BOOKNUM not in", values, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumBetween(Integer value1, Integer value2) {
            addCriterion("BOOKNUM between", value1, value2, "booknum");
            return (Criteria) this;
        }

        public Criteria andBooknumNotBetween(Integer value1, Integer value2) {
            addCriterion("BOOKNUM not between", value1, value2, "booknum");
            return (Criteria) this;
        }

        public Criteria andReasonIsNull() {
            addCriterion("REASON is null");
            return (Criteria) this;
        }

        public Criteria andReasonIsNotNull() {
            addCriterion("REASON is not null");
            return (Criteria) this;
        }

        public Criteria andReasonEqualTo(Integer value) {
            addCriterion("REASON =", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotEqualTo(Integer value) {
            addCriterion("REASON <>", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThan(Integer value) {
            addCriterion("REASON >", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThanOrEqualTo(Integer value) {
            addCriterion("REASON >=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThan(Integer value) {
            addCriterion("REASON <", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThanOrEqualTo(Integer value) {
            addCriterion("REASON <=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonIn(List<Integer> values) {
            addCriterion("REASON in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotIn(List<Integer> values) {
            addCriterion("REASON not in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonBetween(Integer value1, Integer value2) {
            addCriterion("REASON between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotBetween(Integer value1, Integer value2) {
            addCriterion("REASON not between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("MEMO is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("MEMO is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("MEMO =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("MEMO <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("MEMO >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("MEMO >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("MEMO <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("MEMO <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("MEMO like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("MEMO not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("MEMO in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("MEMO not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("MEMO between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("MEMO not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNull() {
            addCriterion("CRTTIME is null");
            return (Criteria) this;
        }

        public Criteria andCrttimeIsNotNull() {
            addCriterion("CRTTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCrttimeEqualTo(Date value) {
            addCriterion("CRTTIME =", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotEqualTo(Date value) {
            addCriterion("CRTTIME <>", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThan(Date value) {
            addCriterion("CRTTIME >", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CRTTIME >=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThan(Date value) {
            addCriterion("CRTTIME <", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeLessThanOrEqualTo(Date value) {
            addCriterion("CRTTIME <=", value, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeIn(List<Date> values) {
            addCriterion("CRTTIME in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotIn(List<Date> values) {
            addCriterion("CRTTIME not in", values, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeBetween(Date value1, Date value2) {
            addCriterion("CRTTIME between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andCrttimeNotBetween(Date value1, Date value2) {
            addCriterion("CRTTIME not between", value1, value2, "crttime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNull() {
            addCriterion("UPDTIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIsNotNull() {
            addCriterion("UPDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdtimeEqualTo(Date value) {
            addCriterion("UPDTIME =", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotEqualTo(Date value) {
            addCriterion("UPDTIME <>", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThan(Date value) {
            addCriterion("UPDTIME >", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDTIME >=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThan(Date value) {
            addCriterion("UPDTIME <", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDTIME <=", value, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeIn(List<Date> values) {
            addCriterion("UPDTIME in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotIn(List<Date> values) {
            addCriterion("UPDTIME not in", values, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeBetween(Date value1, Date value2) {
            addCriterion("UPDTIME between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andUpdtimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDTIME not between", value1, value2, "updtime");
            return (Criteria) this;
        }

        public Criteria andCrtstaffIsNull() {
            addCriterion("CRTSTAFF is null");
            return (Criteria) this;
        }

        public Criteria andCrtstaffIsNotNull() {
            addCriterion("CRTSTAFF is not null");
            return (Criteria) this;
        }

        public Criteria andCrtstaffEqualTo(Integer value) {
            addCriterion("CRTSTAFF =", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffNotEqualTo(Integer value) {
            addCriterion("CRTSTAFF <>", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffGreaterThan(Integer value) {
            addCriterion("CRTSTAFF >", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("CRTSTAFF >=", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffLessThan(Integer value) {
            addCriterion("CRTSTAFF <", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffLessThanOrEqualTo(Integer value) {
            addCriterion("CRTSTAFF <=", value, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffIn(List<Integer> values) {
            addCriterion("CRTSTAFF in", values, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffNotIn(List<Integer> values) {
            addCriterion("CRTSTAFF not in", values, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffBetween(Integer value1, Integer value2) {
            addCriterion("CRTSTAFF between", value1, value2, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andCrtstaffNotBetween(Integer value1, Integer value2) {
            addCriterion("CRTSTAFF not between", value1, value2, "crtstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffIsNull() {
            addCriterion("UPDSTAFF is null");
            return (Criteria) this;
        }

        public Criteria andUpdstaffIsNotNull() {
            addCriterion("UPDSTAFF is not null");
            return (Criteria) this;
        }

        public Criteria andUpdstaffEqualTo(Integer value) {
            addCriterion("UPDSTAFF =", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffNotEqualTo(Integer value) {
            addCriterion("UPDSTAFF <>", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffGreaterThan(Integer value) {
            addCriterion("UPDSTAFF >", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("UPDSTAFF >=", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffLessThan(Integer value) {
            addCriterion("UPDSTAFF <", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffLessThanOrEqualTo(Integer value) {
            addCriterion("UPDSTAFF <=", value, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffIn(List<Integer> values) {
            addCriterion("UPDSTAFF in", values, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffNotIn(List<Integer> values) {
            addCriterion("UPDSTAFF not in", values, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffBetween(Integer value1, Integer value2) {
            addCriterion("UPDSTAFF between", value1, value2, "updstaff");
            return (Criteria) this;
        }

        public Criteria andUpdstaffNotBetween(Integer value1, Integer value2) {
            addCriterion("UPDSTAFF not between", value1, value2, "updstaff");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("NAME is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("NAME is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("NAME =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("NAME <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("NAME >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("NAME >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("NAME <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("NAME <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("NAME like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("NAME not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("NAME in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("NAME not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("NAME between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("NAME not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andInstanceidIsNull() {
            addCriterion("INSTANCEID is null");
            return (Criteria) this;
        }

        public Criteria andInstanceidIsNotNull() {
            addCriterion("INSTANCEID is not null");
            return (Criteria) this;
        }

        public Criteria andInstanceidEqualTo(Long value) {
            addCriterion("INSTANCEID =", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotEqualTo(Long value) {
            addCriterion("INSTANCEID <>", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidGreaterThan(Long value) {
            addCriterion("INSTANCEID >", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidGreaterThanOrEqualTo(Long value) {
            addCriterion("INSTANCEID >=", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidLessThan(Long value) {
            addCriterion("INSTANCEID <", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidLessThanOrEqualTo(Long value) {
            addCriterion("INSTANCEID <=", value, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidIn(List<Long> values) {
            addCriterion("INSTANCEID in", values, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotIn(List<Long> values) {
            addCriterion("INSTANCEID not in", values, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidBetween(Long value1, Long value2) {
            addCriterion("INSTANCEID between", value1, value2, "instanceid");
            return (Criteria) this;
        }

        public Criteria andInstanceidNotBetween(Long value1, Long value2) {
            addCriterion("INSTANCEID not between", value1, value2, "instanceid");
            return (Criteria) this;
        }

        public Criteria andStaffidIsNull() {
            addCriterion("STAFFID is null");
            return (Criteria) this;
        }

        public Criteria andStaffidIsNotNull() {
            addCriterion("STAFFID is not null");
            return (Criteria) this;
        }

        public Criteria andStaffidEqualTo(Integer value) {
            addCriterion("STAFFID =", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotEqualTo(Integer value) {
            addCriterion("STAFFID <>", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThan(Integer value) {
            addCriterion("STAFFID >", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFFID >=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThan(Integer value) {
            addCriterion("STAFFID <", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidLessThanOrEqualTo(Integer value) {
            addCriterion("STAFFID <=", value, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidIn(List<Integer> values) {
            addCriterion("STAFFID in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotIn(List<Integer> values) {
            addCriterion("STAFFID not in", values, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidBetween(Integer value1, Integer value2) {
            addCriterion("STAFFID between", value1, value2, "staffid");
            return (Criteria) this;
        }

        public Criteria andStaffidNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFFID not between", value1, value2, "staffid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}